<?php
require './curl.php';
$site = $_REQUEST["site"];
$id = $_REQUEST["id"];
$category = $_REQUEST["category"];
$year = $_REQUEST["year"];
if(empty($year)){
    $file_path = "https://www.360kan.com/cover/switchsite?site={$site}&id={$id}&category={$category}";
}else{
    $file_path = "https://www.360kan.com/cover/zongyilist?id={$id}&site={$site}&do=switchyear&year={$year}";
}
echo curl_get_contents($file_path); // 将整个文件内容读入到一个字符串中
?>